#
# Be sure to run `pod lib lint FYJUIKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FYJUIKit'
  s.version          = '0.1.2'
  s.summary          = '常用分类框架'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  开发中常用的分类和工具集合，协助你快速开发
                       DESC

  s.homepage         = 'https://gitee.com/fyjpublic-library/fyjuikit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '562925462@qq.com' => '562925462@qq.com' }
  s.source           = { :git => 'https://gitee.com/fyjpublic-library/fyjuikit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'FYJUIKit/Classes/**/*'

  # s.resource_bundles = {
  #   'FYJUIKit' => ['FYJUIKit/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'

    s.source_files = 'FYJUIKit/Classes/*.{h,m}'

    s.subspec 'UIApplication' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIApplication/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIApplication/*.{h}'
    end

    s.subspec 'UIBarButtonItem' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIBarButtonItem/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIBarButtonItem/*.{h}'
    end

    s.subspec 'UIButton' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIButton/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIButton/*.{h}'
    end

    s.subspec 'UIColor' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIColor/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIColor/*.{h}'
    end

    s.subspec 'UIControl' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIControl/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIControl/*.{h}'
    end

    s.subspec 'UIDevice' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIDevice/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIDevice/*.{h}'
    end

    s.subspec 'UIImage' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIImage/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIImage/*.{h}'
    end

    s.subspec 'UIImageView' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIImageView/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIImageView/*.{h}'
    end

    s.subspec 'UILabel' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UILabel/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UILabel/*.{h}'
    end

    s.subspec 'UINavigationController' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UINavigationController/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UINavigationController/*.{h}'
    end

    s.subspec 'UIResponder' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIResponder/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIResponder/*.{h}'
    end

    s.subspec 'UITextField' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UITextField/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UITextField/*.{h}'
    end

    s.subspec 'UITextView' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UITextView/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UITextView/*.{h}'
    end

    s.subspec 'UIView' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIView/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIView/*.{h}'
    end

    s.subspec 'UIWindow' do |obj|
      obj.source_files = 'FYJUIKit/Classes/UIWindow/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/UIWindow/*.{h}'
    end

    s.subspec 'FYJScrollViewNestingSolution' do |obj|
      obj.dependency 'FYJAspects'
      obj.dependency 'KVOController', '~> 1.2.0'
      obj.dependency 'FYJFoundation/Macros'
      obj.source_files = 'FYJUIKit/Classes/FYJScrollViewNestingSolution/*.{h,m}'
      obj.public_header_files = 'FYJUIKit/Classes/FYJScrollViewNestingSolution/*.{h}'
    end

end
